$(function(){
	$(".mask").css("opacity","0.5");
	$("#rigisterButton").bind("click",function(){
		$("#mask").css("display","block");
		$("#rigisterPanel").fadeIn(200);
	});
	$("#cancelRigist").bind("click",function(){
		$("#mask").css("display","none");
		$("#rigisterPanel").fadeOut(200);
	});
	//set the popOutDiv to the center
	with(document.getElementById("rigisterPanel").style){
		left = document.body.offsetWidth/2-175;
		top = document.body.offsetHeight/2-100;
	}
});